home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 1 / CU Amiga Magazine CD-ROM Special Edition (1995)(EMAP Images)(GB)[Issue 1995-11].iso / Aminet / comm / tcp / AmiTCPsdk_40.lha / AmiTCP-4.0 / netinclude / rpc / rpc.h < prev    next >
C/C++ Source or Header  |  1994-10-04  |  2KB  |  66 lines

  1. #ifndef RPC_RPC_H
  2. #define RPC_RPC_H
  3. /*
  4.  * $Id: rpc.h,v 4.1 1994/09/26 08:09:11 jraja Exp jraja $
  5.  *
  6.  * Include the billions of rpc header files necessary to
  7.  * do remote procedure calling.
  8.  *
  9.  * Copyright © 1994 AmiTCP/IP Group,
  10.  *                  Network Solutions Development Inc.
  11.  *                  All rights reserved.
  12.  *
  13.  */
  14. /* @(#)rpc.h    2.4 89/07/11 4.0 RPCSRC; from 1.9 88/02/08 SMI */
  15.  
  16. /*
  17.  * Copyright (C) 1984, Sun Microsystems, Inc.
  18.  */
  19.  
  20. #include <rpc/types.h>        /* some typedefs */
  21. #include <netinet/in.h>
  22.  
  23. /* external data representation interfaces */
  24. #include <rpc/xdr.h>        /* generic (de)serializer */
  25.  
  26. /* Client side only authentication */
  27. #include <rpc/auth.h>        /* generic authenticator (client side) */
  28.  
  29. /* Client side (mostly) remote procedure call */
  30. #include <rpc/clnt.h>        /* generic rpc stuff */
  31.  
  32. /* semi-private protocol headers */
  33. #include <rpc/rpc_msg.h>    /* protocol for rpc messages */
  34. #include <rpc/auth_unix.h>    /* protocol for unix style cred */
  35. /*
  36.  *  Uncomment-out the next line if you are building the rpc library with    
  37.  *  DES Authentication (see the README file in the secure_rpc/ directory).
  38.  */
  39. /*#include <rpc/auth_des.h>    /* protocol for des style cred */
  40.  
  41. /* Server side only remote procedure callee */
  42. #include <rpc/svc.h>        /* service manager and multiplexer */
  43. #include <rpc/svc_auth.h>    /* service side authenticator */
  44.  
  45. /*
  46.  * COMMENT OUT THE NEXT INCLUDE (or add to the #ifndef) IF RUNNING ON
  47.  * A VERSION OF UNIX THAT USES SUN'S NFS SOURCE.  These systems will
  48.  * already have the structures defined by <rpc/netdb.h> included in <netdb.h>.
  49.  */
  50. /* routines for parsing /etc/rpc */
  51.  
  52. struct rpcent {
  53.       char    *r_name;        /* name of server for this rpc program */
  54.       char    **r_aliases;    /* alias list */
  55.       int     r_number;       /* rpc program number */
  56. };
  57.  
  58. struct rpcent *getrpcbyname(char * name),
  59.   *getrpcbynumber(int number)
  60. #if 0 /* getrpcent() not supported in AmiTCP/IP version */
  61.   ,*getrpcent(void)
  62. #endif
  63. ;
  64.  
  65. #endif /* !RPC_RPC_H */
  66.